<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>数组的方法和处理</title>
</head>
<body>
    <script>
        function test(...args) {
            let a = arguments // a类数组

            console.log(args);
            
            // console.log(Array.from(a));
            // console.log(Array.prototype.slice.apply(a));
            // console.log(Array.prototype.slice.call(a));
            // console.log([...a]);
            
            
            
        }
        test(1,2,3,4,5,6,7,8,9)
    </script>
</body>
</html>